package com.qingke.OMS.Command;

import java.util.HashMap;
import java.util.Map;

import com.qingke.OMS.Unit.LauncherEnum;

public class StaticCommandFactory extends AbstractCommandFactory{
	protected static Map<LauncherEnum,Command> SystemMap = new HashMap<LauncherEnum,Command>();
	static{
		SystemMap.put(LauncherEnum.EXIT, new ExitCommand());
	}
                                                                                                                                    
	@Override
	public Command build(LauncherEnum cmd) {
		Command command = SystemMap.get(cmd);
		return command;
		
	}

}
